package com.wiscamp.ninechapters.threeparties.qiniu;

import org.springframework.web.multipart.MultipartFile;

import java.io.File;

public interface FileUploader {
    String uploadFile(MultipartFile multipartFile) throws UploadQiniuException;

    String uploadFile(String filePath, MultipartFile multipartFile) throws UploadQiniuException;

    String uploadFile(MultipartFile multipartFile, String fileName) throws UploadQiniuException;

    String uploadFile(MultipartFile multipartFile, String fileName, String filePath) throws UploadQiniuException;

    String uploadFile(File file) throws UploadQiniuException;

    String uploadFile(String filePath, File file) throws UploadQiniuException;

    String uploadFile(File file, String fileName) throws UploadQiniuException;

    String uploadFile(File file, String fileName, String filePath) throws UploadQiniuException;

    String uploadFile(byte[] data) throws UploadQiniuException;

    String uploadFile(String filePath, byte[] data) throws UploadQiniuException;

    String uploadFile(byte[] data, String fileName) throws UploadQiniuException;

    String uploadFile(byte[] data, String fileName, String filePath) throws UploadQiniuException;
}
